// 2013-7-31下午09:51:28  net.betou.trade.main.dao.UserGroupDao.java

package net.betou.trade.main.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.trade.entity.main.UserGroup;

/**
 * 
 * @author 叶装装
 */
public interface UserGroupDao{

	public UserGroup save( UserGroup bean );
	
	public UserGroup findById( Integer id );
	
	public UserGroup deleteById( Integer id );
	
	public UserGroup findByDefault( );
	
	public int updateToDefault( ); // 更新默认的为非默认，更新当前的为默认的
	
	public UserGroup updateByUpdater( Updater< UserGroup > updater );  
	
	public List< UserGroup > getList( Boolean allowRead,  String searchProperty, String searchValue, String orderProperty, String orderDirection );
}
